import { redirect } from 'next/navigation';
import { getUserFromCookie } from '@/lib/auth';

export default async function RootPage() {
  const user = await getUserFromCookie();
  
  if (user) {
    redirect('/home');
  } else {
    redirect('/login');
  }
}

